Skip to content

Conversation

@ottml
Copy link
Contributor

@ottml ottml commented Dec 1, 2024

Fixes #1711

Copy link
Member

@Flamefire Flamefire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this! I added some inline notes

@ottml ottml force-pushed the leather_addon branch 2 times, most recently from 2a59a2f to e51f41e Compare January 22, 2025 13:44
@ottml ottml marked this pull request as ready for review June 11, 2025 17:01
@ottml
Copy link
Contributor Author

ottml commented Jun 15, 2025

From my side everything is finished so far. We can begin reviewing the changes.

@ottml
Copy link
Contributor Author

ottml commented Jun 25, 2025

@Flamefire If you have time it would be nice to get a review :)

Copy link
Contributor Author

@ottml ottml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I started changing the easy parts first to get down the number of open conversations. It would be nice if you (@Flamefire) can have a look at the applied changes and resolve this conversations if you are fine with the changes.

@Flamefire
Copy link
Member

I started changing the easy parts first to get down the number of open conversations. It would be nice if you (@Flamefire) can have a look at the applied changes and resolve this conversations if you are fine with the changes.

Ok done. If you apply a suggested diff (best via add-to-batch and apply in 1 commit) on GitHub it will auto-resolve the discussion which is fine if it doesn't require additional changes and no further comment or review. Saves some time, but if in doubt do as you did before so we can take a last look.
Thanks again, very productive so far!

SmallFont->Draw(drawPt + DrawPoint(10, -20), "1", FontStyle::CENTER, COLOR_RED);
}

LOADER.GetImageN("leather_bobs", leatheraddon::bobIndex[leatheraddon::BobType::DonkeyBoatCarryingArmorWare])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the name "DonkeyBoatCarryingArmorWare"? If it is used here it seems misnamed or wrongly used. Surprising at least

Comment on lines 132 to 134
numSoldiers += 2 * 3;
numArmoredSoldiers += 2 * 2;
numHelpers += 2 * 1;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ist needed because we have to add the new ones and the ones subtracted before.

I see: you are basically reusing the array you modified for the sending player for the receiving player and need to undo the change.

Better save the original values as const initialNumSoldiers etc and restore here as numSoldiers = initialNumSoldiers + officerSoldiersTraded. That would read better doesn't it?

Otherwise a wording I find better:

Reuse sender counts for (expected) receiver amounts: Add back the figures we subtracted above and add the received ones -> Add 2x the amount sent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New Addon: Leather Economy (new buildings/jobs/wares)

4 participants